package com.zhiche.lisa.lspm.dao.mapper.carrier;


import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.zhiche.lisa.lspm.dao.model.carrier.CarrierLicense;
import com.zhiche.lisa.lspm.dao.model.carrier.bo.CarrierLicenseBO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>
 * 牵引车证照 Mapper 接口
 * </p>
 *
 * @author qichao
 * @since 2018-05-23
 */
@Component
public interface CarrierLicenseMapper extends BaseMapper<CarrierLicense> {

    /**
     * 根据证照类型获取 牵引车证照信息
     */
    CarrierLicenseBO selectByLicenseType(@Param("carrierId") Long carrierId, @Param("licenseTypeCode") String licenseTypeCode, @Param("subjectType") String subjectType, @Param("attachType") String attachType);

    /**
     * 批量添加
     */
    void batchInsert(@Param("licenseList") List<CarrierLicense> licenseList);

    List<CarrierLicense> selectListNoTenant(@Param("ew") EntityWrapper<CarrierLicense> clEW);

}
